Class symantec.itools.db.swing.editors.JDBToolBarModelEditor
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.swing.editors.JDBToolBarModelEditor

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----Panel
                           |
                           +----CustomOverrideEditorSupport
                                   |
                                   +----CustomOverrideVObjEditorSupport
                                           |
                                           +----symantec.itools.db.swing.editors.JDBToolBarModelEditor

public class JDBToolBarModelEditor
extends CustomOverrideVObjEditorSupport
implements PropertyChangeListener, ListChooserEventListener
DBToolbarClassicStyleEditor is the property editor used for editing the DbFunction buttons

Version:
1.0 07/18/98
Author:
Adrian Diaconescu

Variable Index

 o customEditor
 o dbFunction
The value we will be editing.
 o jRootPane

Constructor Index

 o symantec.itools.db.swing.editors.JDBToolBarModelEditor()
Default constructor

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Register a listener for the PropertyChange event.
 o cancelPressed()
The derived class should override this method.
 o getAsText()
 o getCustomEditor()
A PropertyEditor may choose to make available a full custom Component that edits its property value.
 o getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property.
 o getValue()
 o handleEvent(ListChooserEvent)
 o okPressed()
The derived class should override this method.
 o propertyChange(PropertyChangeEvent)
 o removePropertyChangeListener(PropertyChangeListener)
Remove a listener for the PropertyChange event.
 o setAsText(String)
Set the property value by parsing a given String.
 o setValue(Object)
Set (or change) the object that is to be edited.
 o supportsCustomEditor()

Variables

 o customEditor
protected java.awt.Panel customEditor
 o dbFunction
protected java.lang.String[] dbFunction
The value we will be editing.

 o jRootPane
protected com.sun.java.swing.JRootPane jRootPane

Constructors

 o JDBToolBarModelEditor
public JDBToolBarModelEditor()
Default constructor

Methods

 o addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
Register a listener for the PropertyChange event.

Overrides:
addPropertyChangeListener in class CustomOverrideEditorSupport
 o cancelPressed
public void cancelPressed()
The derived class should override this method. and at the end of the overriden method super.cancelPressed() should be called.

Overrides:
cancelPressed in class CustomOverrideEditorSupport
 o getAsText
public java.lang.String getAsText()

Returns:
The property value as a string suitable for presentation to a human to edit.

Returns "null" is the value can't be expressed as a string.

If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().

Overrides:
getAsText in class CustomOverrideEditorSupport
 o getCustomEditor
public java.awt.Component getCustomEditor()
A PropertyEditor may choose to make available a full custom Component that edits its property value. It is the responsibility of the PropertyEditor to hook itself up to its editor Component itself and to report property value changes by firing a PropertyChange event.

The higher-level code that calls getCustomEditor may either embed the Component in some larger property sheet, or it may put it in its own individual dialog, or ...

Returns:
A java.awt.Component that will allow a human to directly edit the current property value. May be null if this is not supported.
Overrides:
getCustomEditor in class CustomOverrideEditorSupport
 o getJavaInitializationString
public java.lang.String getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. It should return a fragment of Java code that can be used to initialize a variable with the current property value.

Example results are "2", "new Color(127,127,34)", "Color.orange", etc.

Returns:
A fragment of Java code representing an initializer for the current value.
Overrides:
getJavaInitializationString in class CustomOverrideEditorSupport
 o getValue
public java.lang.Object getValue()

Overrides:
getValue in class CustomOverrideEditorSupport
 o handleEvent
public void handleEvent(ListChooserEvent e)
 o okPressed
public void okPressed()
The derived class should override this method. and at the end of the overriden method super.okPressed() should be called.

Overrides:
okPressed in class CustomOverrideEditorSupport
 o propertyChange
public void propertyChange(PropertyChangeEvent evt)
 o removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
Remove a listener for the PropertyChange event.

Overrides:
removePropertyChangeListener in class CustomOverrideEditorSupport
 o setAsText
public void setAsText(String val)
Set the property value by parsing a given String.

Overrides:
setAsText in class CustomOverrideEditorSupport
 o setValue
public void setValue(Object newValue)
Set (or change) the object that is to be edited.

Overrides:
setValue in class CustomOverrideEditorSupport
 o supportsCustomEditor
public boolean supportsCustomEditor()

Returns:
True if the propertyEditor can provide a custom editor.
Overrides:
supportsCustomEditor in class CustomOverrideEditorSupport

All Packages  Class Hierarchy  This Package  Previous  Next  Index